package com.lm.stream.compoent;

import com.lm.stream.service.MessageChannels;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.stereotype.Component;

@Component
public class MessageConsumer {

    @StreamListener(MessageChannels.INPUT)
    public void receive(String message) {
        System.out.println("📩 接收到消息：" + message);
    }
}